$.ajax({
    url: "/shop/api/province_sort?domainCode=100008000000000",
    type: 'get',
    cache:false,
    success: function(data){
        data=data.replace(/<script[^>]*>/,"");
        var data = eval('('+data+')')
        var top_unit = data['top_unit'];

        var unit_str = ''
        for(var i in top_unit){
            unit_str += '<li><span class="num num'+(parseInt(i)+1)+'">'+(parseInt(i)+1)+'</span><span class="ph_main2" title="'+top_unit[i]["DOMAIN_NAME"]+'">'+top_unit[i]["DOMAIN_NAME"]+'</span><span class="ph_num">'+top_unit[i]["SCORE"]+'</span><div class="clear"></div></li>';
        }
        var top_score = data['top_score']

        var score_str = ''
        for(var j in top_score){
            score_str+= '<li><span class="num num'+(parseInt(j)+1)+'">'+(parseInt(j)+1)+'</span><span class="ph_name">'+top_score[j]["USER_NAME"]+'</span><span class="ph_main" title="'+top_score[j]["DOMAIN_NAME"]+'">'+top_score[j]["DOMAIN_NAME"]+'</span><span class="ph_num">'+top_score[j]["SCORE"]+'</span><div class="clear"></div></li>';
        }
        $("#unit_str").html(unit_str)
        $("#score_str").html(score_str)
    }
});